<template>
  <div class="dashboard-container">
    <div class="app-container">
      <el-card shadow="never">
        <el-button
          class="filter-item fr"
          size="small"
          style="margin-right: 10px; float: right"
          type="primary"
          icon="el-icon-edit"
          >添加</el-button
        >
        <el-table :data="list" border row-key="id">
          <el-table-column prop="" align="center" label="标题" />
          <el-table-column prop="" align="center" label="权限点代码" />
          <el-table-column align="center" label="操作">
            <!-- <template slot-scope="{ row }"> -->
            <el-button type="primary">编辑</el-button>
            <el-button type="danger">删除</el-button>
            <!-- </template> -->
          </el-table-column>
        </el-table>
      </el-card>
    </div>
  </div>
</template>

<script>
import { getMenusListApi } from "@/api/Menus";
export default {
  data() {
    return {
      list: [],
    };
  },
  created() {
    this.initData();
  },
  methods: {
    async initData() {
      let res = await getMenusListApi();
      console.log(res);
      // this.list = tranListToTreeData(res, "0");
    },
  },
};
</script>

<style>
</style>